<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 服务器状态 添加
@author WeiXiaoJin
@since 2020-01-26 09:30:11
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">核心数</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuNum" type="text" name="cpuNum" placeholder="核心数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">CPU使用率</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuTotal" type="text" name="cpuTotal" placeholder="CPU使用率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">CPU系统使用</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuSys" type="text" name="cpuSys" placeholder="CPU系统使用">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">CPU用户使用率</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuUsed" type="text" name="cpuUsed" placeholder="CPU用户使用率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">CPU当前等待率</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuWait" type="text" name="cpuWait" placeholder="CPU当前等待率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">CPU当前空闲率</label>
	<div class="col-md-9">
				<input class="form-control" id="cpuFree" type="text" name="cpuFree" placeholder="CPU当前空闲率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">JVM内存总数</label>
	<div class="col-md-9">
				<input class="form-control" id="jvmTotal" type="text" name="jvmTotal" placeholder="JVM内存总数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">JVM最大可用内存总数</label>
	<div class="col-md-9">
				<input class="form-control" id="jvmMax" type="text" name="jvmMax" placeholder="JVM最大可用内存总数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">JVM空闲内存</label>
	<div class="col-md-9">
				<input class="form-control" id="jvmFree" type="text" name="jvmFree" placeholder="JVM空闲内存">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">JDK版本</label>
	<div class="col-md-9">
				<input class="form-control" id="jvmVersion" type="text" name="jvmVersion" placeholder="JDK版本">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">JDK路径</label>
	<div class="col-md-9">
				<input class="form-control" id="jvmHome" type="text" name="jvmHome" placeholder="JDK路径">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">内存总量</label>
	<div class="col-md-9">
				<input class="form-control" id="memTotal" type="text" name="memTotal" placeholder="内存总量">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">已用内存</label>
	<div class="col-md-9">
				<input class="form-control" id="memUsed" type="text" name="memUsed" placeholder="已用内存">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">剩余内存</label>
	<div class="col-md-9">
				<input class="form-control" id="menFree" type="text" name="menFree" placeholder="剩余内存">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">盘符路径</label>
	<div class="col-md-9">
				<input class="form-control" id="fileDirName" type="text" name="fileDirName" placeholder="盘符路径">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">盘符类型</label>
	<div class="col-md-9">
				<input class="form-control" id="fileTypeName" type="text" name="fileTypeName" placeholder="盘符类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">总大小</label>
	<div class="col-md-9">
				<input class="form-control" id="fileTotal" type="text" name="fileTotal" placeholder="总大小">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">剩余大小</label>
	<div class="col-md-9">
				<input class="form-control" id="fileFree" type="text" name="fileFree" placeholder="剩余大小">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">已使用量</label>
	<div class="col-md-9">
				<input class="form-control" id="fileUsed" type="text" name="fileUsed" placeholder="已使用量">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">使用率</label>
	<div class="col-md-9">
				<input class="form-control" id="fileUsage" type="text" name="fileUsage" placeholder="使用率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">服务器名称</label>
	<div class="col-md-9">
				<input class="form-control" id="serverName" type="text" name="serverName" placeholder="服务器名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">服务器IP</label>
	<div class="col-md-9">
				<input class="form-control" id="serverIp" type="text" name="serverIp" placeholder="服务器IP">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">项目路径</label>
	<div class="col-md-9">
				<input class="form-control" id="serverUserDir" type="text" name="serverUserDir" placeholder="项目路径">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作系统</label>
	<div class="col-md-9">
				<input class="form-control" id="serverOsName" type="text" name="serverOsName" placeholder="操作系统">
			</div>
</div>
																			</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
cpuNum: {required:true,number:true}
,cpuTotal: {required:true}
,cpuSys: {required:true}
,cpuUsed: {required:true}
,cpuWait: {required:true}
,cpuFree: {required:true}
,jvmTotal: {required:true}
,jvmMax: {required:true}
,jvmFree: {required:true}
,jvmVersion: {required:true}
,jvmHome: {required:true}
,memTotal: {required:true}
,memUsed: {required:true}
,menFree: {required:true}
,fileDirName: {required:true}
,fileTypeName: {required:true}
,fileTotal: {required:true}
,fileFree: {required:true}
,fileUsed: {required:true}
,fileUsage: {required:true}
,serverName: {required:true}
,serverIp: {required:true}
,serverUserDir: {required:true}
,serverOsName: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/logger/logSystemStatus/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


